function Animal(){

  this.species = "动物";

  console.log('animal is cal')

  this.drink = function(){
    console.log('drink')
  }
  
}

Animal.prototype.eat = function(){
  console.log('eat')
}

function Cat(name,color){

  Animal.apply(this,arguments)
  this.name=name;
  this.color= color
  console.log('cat ',this)
}

var cat1 = new Cat('二毛','黄色')

cat1.drink()

